import { postAxios, getAxios, postDownloadAxios } from '@/lib/http';

export const engineThousandApi = {
    // 添加发动机万有特性 @author wuhq
    addEngineThousand: (data) => {
        return postAxios('/engineThousand/add', data);
    },
    // 分页查询发动机万有特性 @author wuhq
    queryEngineThousand: (data) => {
        return postAxios('/engineThousand/page/query', data);
    },
  getByEngineId: (data) => {
    return getAxios(`/engineThousand/getByEngineId/${data}`);
  },
    // 批量删除发动机万有特性 @author wuhq
    batchDeleteEngineThousand: (idList) => {
        return postAxios('/engineThousand/deleteByIds', idList);
    },
    // 修改发动机万有特性  @author wuhq
    updateEngineThousand: (data) => {
        return postAxios('/engineThousand/update',data);
    },
    // 导出全部  @author wuhq
    exportAll:(data)=>{
        return postDownloadAxios('/engineThousand/export/all',data);
    },
    // 批量导出  @author wuhq
    batchExport: (idList) => {
        return postDownloadAxios('/engineThousand/export/batch', idList);
    },
};
